/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * BusquedaResultados1.java
 *
 * Created on 28-sep-2011, 19:37:03
 */
package vista;

import controlador.VentanaResultadosController;
import java.util.Vector;
import javax.swing.JOptionPane;

/**
 *
 * @author Gustavo Canul, Diego Serafín Martínez García
 */
public class BusquedaResultados extends javax.swing.JDialog {

    VentanaResultadosController ok = new VentanaResultadosController();
    
    private void fillTable(){
      
      Vector<String> data = ok.getDataforTableYucatan();
      Vector<String> titles = ok.getTitlesYucatan();

      
        TableOrdenados.setModel(
                new javax.swing.table.DefaultTableModel(
            data,titles
        ));
      }
    
    
    private void fillTableVacia(){
      
      Vector<String> data = ok.getDataforTableVacia();
      Vector<String> titles = ok.getTitlesYucatan();

        TableEncontrados.setModel(
                new javax.swing.table.DefaultTableModel(
            data,titles
        ));
      }
    
    
    private void fillTableEncontrado(){
      
      Vector<String> data = ok.getDataforTableYucatan();
      Vector<String> titles = ok.getTitlesYucatan();

        TableEncontrados.setModel(
                new javax.swing.table.DefaultTableModel(
            data,titles
        ));
      }
    
    
    /** Creates new form BusquedaResultados1 */
    public BusquedaResultados(java.awt.Frame parent, boolean modal,int tipo) {
      super(parent, modal);
      
      
        ok.loadData();
        initComponents();
        fillTable();
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        rbtngroupCriterios = new javax.swing.ButtonGroup();
        rbtngroupTipoOrdenamiento = new javax.swing.ButtonGroup();
        jpnlValor = new javax.swing.JPanel();
        btnNuevaBusqueda = new javax.swing.JButton();
        TFBusqueda = new javax.swing.JTextField();
        btnBuscar = new javax.swing.JButton();
        lblValor = new javax.swing.JLabel();
        jpnlCriterios = new javax.swing.JPanel();
        rbtnMayorIgual = new javax.swing.JRadioButton();
        rbtnIgual = new javax.swing.JRadioButton();
        rbtnMenor = new javax.swing.JRadioButton();
        rbtnMenorIgual = new javax.swing.JRadioButton();
        lblCriterios = new javax.swing.JLabel();
        rbtnMayor = new javax.swing.JRadioButton();
        jpnlTipoOrdenamiento = new javax.swing.JPanel();
        rbtnShellSort = new javax.swing.JRadioButton();
        rbtnMergeSort = new javax.swing.JRadioButton();
        rbtnBurbuja = new javax.swing.JRadioButton();
        rbtnInsercion = new javax.swing.JRadioButton();
        rbtnQuickSort = new javax.swing.JRadioButton();
        lblTipoOrdenamiento = new javax.swing.JLabel();
        jpnlTablas = new javax.swing.JPanel();
        lblListadoOrdenado = new javax.swing.JLabel();
        lblElementosEncontrados = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        TableOrdenados = new javax.swing.JTable();
        jScrollPane2 = new javax.swing.JScrollPane();
        TableEncontrados = new javax.swing.JTable();
        btnRegresar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Resultados ENLACE Yucatán 2010");
        setResizable(false);

        jpnlValor.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 204, 204))); // NOI18N

        btnNuevaBusqueda.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
        btnNuevaBusqueda.setText("Nueva Búsqueda");
        btnNuevaBusqueda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevaBusquedaActionPerformed(evt);
            }
        });

        btnBuscar.setFont(new java.awt.Font("Verdana", 0, 12));
        btnBuscar.setText("Buscar");
        btnBuscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarActionPerformed(evt);
            }
        });

        lblValor.setFont(new java.awt.Font("Verdana", 0, 14));
        lblValor.setText("Valor:");

        javax.swing.GroupLayout jpnlValorLayout = new javax.swing.GroupLayout(jpnlValor);
        jpnlValor.setLayout(jpnlValorLayout);
        jpnlValorLayout.setHorizontalGroup(
            jpnlValorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnlValorLayout.createSequentialGroup()
                .addGap(46, 46, 46)
                .addComponent(lblValor, javax.swing.GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE)
                .addGap(52, 52, 52)
                .addComponent(TFBusqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(74, 74, 74)
                .addComponent(btnBuscar)
                .addGap(54, 54, 54)
                .addComponent(btnNuevaBusqueda)
                .addGap(381, 381, 381))
        );
        jpnlValorLayout.setVerticalGroup(
            jpnlValorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnlValorLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jpnlValorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblValor, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(TFBusqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnNuevaBusqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jpnlCriterios.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 204, 204))); // NOI18N

        rbtngroupTipoOrdenamiento.add(rbtnMayorIgual);
        rbtnMayorIgual.setFont(new java.awt.Font("Verdana", 0, 12));
        rbtnMayorIgual.setText(">=");

        rbtngroupTipoOrdenamiento.add(rbtnIgual);
        rbtnIgual.setFont(new java.awt.Font("Verdana", 0, 12));
        rbtnIgual.setText("=");

        rbtngroupTipoOrdenamiento.add(rbtnMenor);
        rbtnMenor.setFont(new java.awt.Font("Verdana", 0, 12));
        rbtnMenor.setText("<");

        rbtngroupTipoOrdenamiento.add(rbtnMenorIgual);
        rbtnMenorIgual.setFont(new java.awt.Font("Verdana", 0, 12));
        rbtnMenorIgual.setText("<=");

        lblCriterios.setFont(new java.awt.Font("Verdana", 0, 12));
        lblCriterios.setText("Criterios:");

        rbtngroupTipoOrdenamiento.add(rbtnMayor);
        rbtnMayor.setFont(new java.awt.Font("Verdana", 0, 12));
        rbtnMayor.setSelected(true);
        rbtnMayor.setText(">");

        javax.swing.GroupLayout jpnlCriteriosLayout = new javax.swing.GroupLayout(jpnlCriterios);
        jpnlCriterios.setLayout(jpnlCriteriosLayout);
        jpnlCriteriosLayout.setHorizontalGroup(
            jpnlCriteriosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnlCriteriosLayout.createSequentialGroup()
                .addGap(39, 39, 39)
                .addGroup(jpnlCriteriosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblCriterios)
                    .addGroup(jpnlCriteriosLayout.createSequentialGroup()
                        .addComponent(rbtnMayor)
                        .addGap(34, 34, 34)
                        .addComponent(rbtnMayorIgual)
                        .addGap(24, 24, 24)
                        .addComponent(rbtnIgual)
                        .addGap(28, 28, 28)
                        .addComponent(rbtnMenorIgual)
                        .addGap(30, 30, 30)
                        .addComponent(rbtnMenor)))
                .addContainerGap(646, Short.MAX_VALUE))
        );
        jpnlCriteriosLayout.setVerticalGroup(
            jpnlCriteriosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnlCriteriosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblCriterios)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jpnlCriteriosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rbtnMayor)
                    .addComponent(rbtnMayorIgual)
                    .addComponent(rbtnIgual)
                    .addComponent(rbtnMenorIgual)
                    .addComponent(rbtnMenor))
                .addGap(29, 29, 29))
        );

        jpnlTipoOrdenamiento.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 204, 204))); // NOI18N

        rbtngroupCriterios.add(rbtnShellSort);
        rbtnShellSort.setFont(new java.awt.Font("Verdana", 0, 12));
        rbtnShellSort.setText("ShellSort");

        rbtngroupCriterios.add(rbtnMergeSort);
        rbtnMergeSort.setFont(new java.awt.Font("Verdana", 0, 12));
        rbtnMergeSort.setText("MergeSort");

        rbtngroupCriterios.add(rbtnBurbuja);
        rbtnBurbuja.setFont(new java.awt.Font("Verdana", 0, 12));
        rbtnBurbuja.setSelected(true);
        rbtnBurbuja.setText("Burbuja");

        rbtngroupCriterios.add(rbtnInsercion);
        rbtnInsercion.setFont(new java.awt.Font("Verdana", 0, 12));
        rbtnInsercion.setText("Insercción");

        rbtngroupCriterios.add(rbtnQuickSort);
        rbtnQuickSort.setFont(new java.awt.Font("Verdana", 0, 12));
        rbtnQuickSort.setText("QuickSort");

        lblTipoOrdenamiento.setFont(new java.awt.Font("Verdana", 0, 12));
        lblTipoOrdenamiento.setText("Tipo de Ordenamiento:");

        javax.swing.GroupLayout jpnlTipoOrdenamientoLayout = new javax.swing.GroupLayout(jpnlTipoOrdenamiento);
        jpnlTipoOrdenamiento.setLayout(jpnlTipoOrdenamientoLayout);
        jpnlTipoOrdenamientoLayout.setHorizontalGroup(
            jpnlTipoOrdenamientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnlTipoOrdenamientoLayout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addGroup(jpnlTipoOrdenamientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jpnlTipoOrdenamientoLayout.createSequentialGroup()
                        .addComponent(rbtnBurbuja)
                        .addGap(18, 18, 18)
                        .addComponent(rbtnInsercion)
                        .addGap(18, 18, 18)
                        .addComponent(rbtnShellSort)
                        .addGap(22, 22, 22)
                        .addComponent(rbtnMergeSort)
                        .addGap(18, 18, 18)
                        .addComponent(rbtnQuickSort))
                    .addComponent(lblTipoOrdenamiento))
                .addContainerGap(455, Short.MAX_VALUE))
        );
        jpnlTipoOrdenamientoLayout.setVerticalGroup(
            jpnlTipoOrdenamientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnlTipoOrdenamientoLayout.createSequentialGroup()
                .addComponent(lblTipoOrdenamiento, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jpnlTipoOrdenamientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rbtnBurbuja)
                    .addComponent(rbtnInsercion)
                    .addComponent(rbtnShellSort)
                    .addComponent(rbtnQuickSort)
                    .addComponent(rbtnMergeSort))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jpnlTablas.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 204, 204))); // NOI18N

        lblListadoOrdenado.setFont(new java.awt.Font("Verdana", 0, 12));
        lblListadoOrdenado.setText("Listado Ordenado:");

        lblElementosEncontrados.setFont(new java.awt.Font("Verdana", 0, 12));
        lblElementosEncontrados.setText("Resultados Encontrados:");

        TableOrdenados.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 0, 255))); // NOI18N
        TableOrdenados.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Nombre de la Entidad", "Clave de la Escuela", "Nombre de la Escuela", "Promedio Global"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        TableOrdenados.getTableHeader().setResizingAllowed(false);
        TableOrdenados.getTableHeader().setReorderingAllowed(false);
        jScrollPane1.setViewportView(TableOrdenados);

        TableEncontrados.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        TableEncontrados.setFont(new java.awt.Font("Verdana", 0, 12));
        TableEncontrados.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Nombre de la Entidad", "Clave de la Escuela", "Nombre de la Escuela", "Promedio Global"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        TableEncontrados.getTableHeader().setResizingAllowed(false);
        TableEncontrados.getTableHeader().setReorderingAllowed(false);
        jScrollPane2.setViewportView(TableEncontrados);

        javax.swing.GroupLayout jpnlTablasLayout = new javax.swing.GroupLayout(jpnlTablas);
        jpnlTablas.setLayout(jpnlTablasLayout);
        jpnlTablasLayout.setHorizontalGroup(
            jpnlTablasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnlTablasLayout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addGroup(jpnlTablasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 921, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 921, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblElementosEncontrados)
                    .addComponent(lblListadoOrdenado))
                .addContainerGap(33, Short.MAX_VALUE))
        );
        jpnlTablasLayout.setVerticalGroup(
            jpnlTablasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpnlTablasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblListadoOrdenado)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblElementosEncontrados)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 107, Short.MAX_VALUE)
                .addContainerGap())
        );

        btnRegresar.setText("Regresar");
        btnRegresar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRegresarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jpnlTablas, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jpnlValor, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jpnlCriterios, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jpnlTipoOrdenamiento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(27, 27, 27))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(873, Short.MAX_VALUE)
                .addComponent(btnRegresar, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(41, 41, 41))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jpnlValor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jpnlCriterios, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jpnlTipoOrdenamiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jpnlTablas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnRegresar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(22, 22, 22))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    public int criterios(){
        if(rbtnMayor.isSelected()){
            return 0;
        }
        else{
            if(rbtnMayorIgual.isSelected()){
                return 1;
            }
            else{
                if(rbtnIgual.isSelected()){
                    return 2;
                }
                else{
                    if(rbtnMenorIgual.isSelected()){
                        return 3;
                    }
                    else{
                        return 4;
                    }
                }
            }
            
        }
    }//fin de criterios
    
    
    public int ordenamiento(){
        if(rbtnBurbuja.isSelected()){
            return 0;
        }
        else{
            if(rbtnInsercion.isSelected()){
                return 1;
            }
            else{
                if(rbtnShellSort.isSelected()){
                    return 2;
                }
                else{
                    if(rbtnMergeSort.isSelected()){
                        return 3;
                    }
                    else{
                        return 4;
                    }
                }
            }
        }
    }//fin de ordenamientos
    
    
private void btnBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarActionPerformed

    try{
        
    ok.OrdenaInternos(ordenamiento());
    fillTable();
    ok.consultaYucatan(  ordenamiento(), criterios(), Double.parseDouble(TFBusqueda.getText()));
    fillTableEncontrado();
    ok.reestablecer();
    
    }
    catch ( NumberFormatException e){
        JOptionPane.showMessageDialog( this , "Valor de entrada no válido", "Error de entrada", JOptionPane.ERROR_MESSAGE);
    }
}//GEN-LAST:event_btnBuscarActionPerformed

private void btnNuevaBusquedaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevaBusquedaActionPerformed
ok.reestablecer();
fillTable();
TFBusqueda.setText("");
fillTable();
fillTableVacia();
    
}//GEN-LAST:event_btnNuevaBusquedaActionPerformed

private void btnRegresarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRegresarActionPerformed
   this.dispose();
}//GEN-LAST:event_btnRegresarActionPerformed

    /**
     * @param args the command line arguments
     */
  
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField TFBusqueda;
    private javax.swing.JTable TableEncontrados;
    private javax.swing.JTable TableOrdenados;
    private javax.swing.JButton btnBuscar;
    private javax.swing.JButton btnNuevaBusqueda;
    private javax.swing.JButton btnRegresar;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JPanel jpnlCriterios;
    private javax.swing.JPanel jpnlTablas;
    private javax.swing.JPanel jpnlTipoOrdenamiento;
    private javax.swing.JPanel jpnlValor;
    private javax.swing.JLabel lblCriterios;
    private javax.swing.JLabel lblElementosEncontrados;
    private javax.swing.JLabel lblListadoOrdenado;
    private javax.swing.JLabel lblTipoOrdenamiento;
    private javax.swing.JLabel lblValor;
    private javax.swing.JRadioButton rbtnBurbuja;
    private javax.swing.JRadioButton rbtnIgual;
    private javax.swing.JRadioButton rbtnInsercion;
    private javax.swing.JRadioButton rbtnMayor;
    private javax.swing.JRadioButton rbtnMayorIgual;
    private javax.swing.JRadioButton rbtnMenor;
    private javax.swing.JRadioButton rbtnMenorIgual;
    private javax.swing.JRadioButton rbtnMergeSort;
    private javax.swing.JRadioButton rbtnQuickSort;
    private javax.swing.JRadioButton rbtnShellSort;
    private javax.swing.ButtonGroup rbtngroupCriterios;
    private javax.swing.ButtonGroup rbtngroupTipoOrdenamiento;
    // End of variables declaration//GEN-END:variables
}
